import request from '@/utils/request'
// import request1 from '@/utils/request1'

// 查询地址
export function getChinaArea(params) {
  return request({
    url: '/chinaArea/list',
    method: 'get',
    params
  })
}

// 查询地址
export function getChinaAreaList(params) {
  return request({
    url: '/chinaArea/areaMap',
    method: 'get',
    params
  })
}

// 查询厂商
export function getFacturerInfo(params) {
  return request({
    url: '/manufacturer/facturerInfo',
    method: 'get',
    params
  })
}

// 厂商下拉框数据
export function getManufacturerAll(params) {
  return request({
    url: '/manufacturer/facturerInfoAll',
    params
  })
}

// 查询设备型号
export function getModel(params) {
  return request({
    url: '/deviceMode/modelInfo',
    method: 'get',
    params
  })
}

// 上传文件
export function upload(data) {
  return request({
    url: '/file/upload',
    method: 'POST',
    data
  })
}

// 下载文件
export function download(data) {
  return request({
    url: '/file/download',
    method: 'POST',
    data
  })
}

// 查询项目
export function getProject(params) {
  return request({
    url: '/project/projectDeviceMap',
    method: 'get',
    params
  })
}

// 查询项目
export function getProjectDeviceMap(data) {
  return request({
    url: '/project/getProjectDeviceMap',
    method: 'post',
    data
  })
}

// 查询管理归属
export function getDept(data) {
  return request({
    url: '/system/dept/treeselect',
    method: 'get',
  })
}

// 查询部门
export function getDepts(data) {
  return request({
    url: '/system/dept/' + data,
    method: 'get',
  })
}